<?php
//config.php

$config = array(

	//*****************************************************************************************
	// --------------------- core configuration values (framework defined) --------------------
	//*****************************************************************************************
	
	
	// ----------------- basic site configuration -----------------
	'appdir' => "C:\projects\cs430\website", // for setting up explicit includes when needed
	'site_title' => "CS430 CRM", // <head><title>
	'session_name' => "cs430crm", // all session vars are in $_SESSION[session_name]
	'defaultpage' => 'vieworder', // default page class name
	
	'admin_email' => 'kazan@cs.iastate.edu', //setting this enables errors to be emailed
	'debug' => 1, // setting this to 1 displays errors on screen
	
	// ----------------- site menu -----------------
	// array(Type,Name,Content,AuthStatus,AccessLevel)
	// Type: Item or Menu
	// Name: string to be displayed
	// Content: If Item - the link, if Menu - array containing the menu children
	// LoggedIn: "Any" (displayed logged in, or out),
	//			 "No" (displayed only logged out),
	//			"Yes" (displayed only logged in) 
	// AccessLevel:  Required Access Level To Display
	//				 0 - Not Logged In users
	//				 1 - Logged In Users
	//				 >1 - Application Custom
	'menu' => array(	
				array('Type'=>"Item",'Name'=>"View Order",'Content'=>"index.php?pgn=vieworder",'Auth'=>"Any",'AccessLevel'=>0),
				array('Type'=>"Item",'Name'=>"View Customer",'Content'=>"index.php?pgn=viewcust",'Auth'=>"Any",'AccessLevel'=>0),
				//array('Type'=>"Item",'Name'=>"Active List",'Content'=>"index.php?pgn=active_list",'Auth'=>"Any",'AccessLevel'=>2),
				array('Type'=>"Item",'Name'=>"Add Customer",'Content'=>"index.php?pgn=addcust",'Auth'=>"Yes",'AccessLevel'=>1),
				array('Type'=>"Item",'Name'=>"Add Order",'Content'=>"index.php?pgn=addorder",'Auth'=>"Yes",'AccessLevel'=>1),
				
				array('Type'=>"Item",'Name'=>"Manage Users",'Content'=>"index.php?pgn=users",'Auth'=>"Any",'AccessLevel'=>2),
				array('Type'=>"Item",'Name'=>"Login",'Content'=>"index.php?pgn=login",'Auth'=>"No",'AccessLevel'=>0),
				array('Type'=>"Item",'Name'=>"Log Out",'Content'=>"index.php?logout=1",'Auth'=>"Yes",'AccessLevel'=>1)
			),
	'menu_type' => 'ulist_1lvl_menu',
	
	// ----------------- database config -----------------
	'database'=>array(
					'host'=>'localhost',
					'user'=>'cs430',
					'pass'=>'cs430',
					'db'=>'cs430crm',
					'type' => 'mysql'
					),
					
	// ----------------- authentication configuration -----------------
	'auth_type' => 'db', //options: ldap, db
	
	'LDAP' => array(
			"Server" => "",
			"User" => "",
			"Pass" => "",
			"base_dn" => "",
			"type" => "" //AD=Active Directory, open=openldap
			),
	
	//*****************************************************************************************
	// ----------------- extended configuration values (application specific) -----------------
	//*****************************************************************************************
	'CS430 Integration' => array(
				'crm orb locator' => 'CRM:tcp -h kazanmobile.student.iastate.edu -p 31337',
				'opt orb locator' => 'optengine:tcp -h 129.186.67.82 -p 10000',
				'track orb locator' => 'trackservice:tcp -h 129.186.67.78 -p 10001',
			),
	
);
?>